<?php

namespace App\Model\Categorys;

use EasySwoole\Spl\SplBean;

class CategorysBean extends SplBean{

    protected $id;
    protected $name;
    protected $thumb;

    //toArrayWithMapping
//    protected function setKeyMapping():array{
//        return [
//            'username' => 'name',
//            'nickname' => 'nick'
//        ];
//    }

    public function getId(){
        return $this->id;
    }

    public function getName(){
        return $this->name;
    }

    public function getThumb(){
        return $this->thumb;
    }

//    protected function initialize(): void{
//        $this->created_at = Carbon::now();
//    }

}
